import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { Row, Col,Button,message,Card,Icon,Input,InputNumber, Popconfirm, Form} from 'antd';
import './ThirdContent.scss';
import TableForm2 from './TableForm2';
const tableData = [];

class ThirdContent extends PureComponent {

  // this.props.form.validateFieldsAndScroll(async (err, values) => {
  //   if (err) return;
  //   const { oldPassword, newPassword } = values;
  //   const response = await API.modifyPassword(oldPassword, newPassword);
  //   const { code } = response;
  //   if (code === 1) {
  //     message.success('密码修改成功');
  //   } else {
  //     // message.error(Codes[code]);
  //   }
  // });

render () {
  var screenHeight = document.body.clientHeight;
  const { getFieldDecorator } = this.props.form;
        return (
        <div style={{overflowY:'scroll',maxHeight: screenHeight-319}}>
        <div style={{background:'#eceff3',height:10}}></div>
        <div style={{ background: '#fff', padding: '5px 30px'}}>
        <Card title="股东信息" bordered={false} style={{textAlign:'left'}}>
        {getFieldDecorator('gudomembers', {
            initialValue: tableData,
          })(<TableForm2 />)}
       </Card>
       </div>
      </div>
    ); 
}
}

ThirdContent.propTypes = {
  form: PropTypes.object.isRequired,
};

const WrappedThirdContent = Form.create({})(ThirdContent);
export default WrappedThirdContent;